﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DocumentFormat.OpenXml.Packaging;

namespace OPENXMLLib
{
    public static class WorksheetPartExtention
    {
        public static WorkbookPart GetWorkbookPart(this WorksheetPart worksheetPart)
        {
            return worksheetPart.GetParentParts().FirstOrDefault() as WorkbookPart;
        }
    }
}
